#ifndef __BSP_LED_H__
#define __BSP_LED_H__


#include "stm32f10x.h"




#define           LED_D4_Pin                    GPIO_Pin_2
#define           LED_D4_Port                   GPIOC
#define           LED_D4_APBxClock_CLK          RCC_APB2Periph_GPIOC

#define           LED_D5_Pin                    GPIO_Pin_3
#define           LED_D5_Port                   GPIOC
#define           LED_D5_APBxClock_CLK          RCC_APB2Periph_GPIOC


#define           LED_ON                         1
#define           LED_OFF                        0


#define           LED_D4_TOGGLE()                LED_D4_Port->ODR ^= LED_D4_Pin; // 电平翻转
#define           LED_D5_TOGGLE()                LED_D5_Port->ODR ^= LED_D5_Pin; // 电平翻转



void Led_Init(void);
void LED_D4_Control(uint8_t On_Off);
void LED_D5_Control(uint8_t On_Off);
void led_thread_entry(void *parameter);


#endif

